package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @Author:zimmor
 * @Date: 2021/3/4 17:50
 * @Description 数据层接口
 * @version: 1.0.0
 */

public interface SpitDao extends MongoRepository<Spit, String> {
    Page findByParentid(String parintid, Pageable pageable);
    Spit findBy_id(String id);
}
